home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / ASDebugging.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  6.5 KB  |  229 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        ASDebugging.h
  3.  
  4.      Contains:    AppleScript Debugging Interfaces.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1992-1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __ASDEBUGGING__
  18. #define __ASDEBUGGING__
  19.  
  20. #ifndef __MACTYPES__
  21.     #include <MacTypes.h>
  22. #endif
  23.  
  24. #ifndef __FILES__
  25.     #include <Files.h>
  26. #endif
  27.  
  28. #ifndef __COMPONENTS__
  29.     #include <Components.h>
  30. #endif
  31.  
  32. #ifndef __APPLEEVENTS__
  33.     #include <AppleEvents.h>
  34. #endif
  35.  
  36. #ifndef __APPLESCRIPT__
  37.     #include <AppleScript.h>
  38. #endif
  39.  
  40.  
  41.  
  42.  
  43. #if PRAGMA_ONCE
  44. #pragma once
  45. #endif
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. #if PRAGMA_IMPORT
  52. #pragma import on
  53. #endif
  54.  
  55. #if PRAGMA_STRUCT_ALIGN
  56.     #pragma options align=mac68k
  57. #elif PRAGMA_STRUCT_PACKPUSH
  58.     #pragma pack(push, 2)
  59. #elif PRAGMA_STRUCT_PACK
  60.     #pragma pack(2)
  61. #endif
  62.  
  63. /**************************************************************************
  64.     Mode Flags
  65. **************************************************************************/
  66. /*     This mode flag can be passed to OSASetProperty or OSASetHandler
  67.     and will prevent properties or handlers from being defined in a context
  68.     that doesn't already have bindings for them. An error is returned if
  69.     a current binding doesn't already exist. 
  70. */
  71. enum {
  72.     kOSAModeDontDefine            = 0x0001
  73. };
  74.  
  75. /**************************************************************************
  76.     Component Selectors
  77. **************************************************************************/
  78. enum {
  79.     kASSelectSetPropertyObsolete = 0x1101,
  80.     kASSelectGetPropertyObsolete = 0x1102,
  81.     kASSelectSetHandlerObsolete    = 0x1103,
  82.     kASSelectGetHandlerObsolete    = 0x1104,
  83.     kASSelectGetAppTerminologyObsolete = 0x1105,
  84.     kASSelectSetProperty        = 0x1106,
  85.     kASSelectGetProperty        = 0x1107,
  86.     kASSelectSetHandler            = 0x1108,
  87.     kASSelectGetHandler            = 0x1109,
  88.     kASSelectGetAppTerminology    = 0x110A,
  89.     kASSelectGetSysTerminology    = 0x110B,
  90.     kASSelectGetPropertyNames    = 0x110C,
  91.     kASSelectGetHandlerNames    = 0x110D
  92. };
  93.  
  94. enum {
  95.     kASSelectFlushTerminology    = 0x110E
  96. };
  97.  
  98. /**************************************************************************
  99.     Context Accessors
  100. **************************************************************************/
  101. EXTERN_API( OSAError )
  102. OSASetProperty                    (ComponentInstance         scriptingComponent,
  103.                                  long                     modeFlags,
  104.                                  OSAID                     contextID,
  105.                                  const AEDesc *            variableName,
  106.                                  OSAID                     scriptValueID)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x1106, 0x7000, 0xA82A);
  107.  
  108. EXTERN_API( OSAError )
  109. OSAGetProperty                    (ComponentInstance         scriptingComponent,
  110.                                  long                     modeFlags,
  111.                                  OSAID                     contextID,
  112.                                  const AEDesc *            variableName,
  113.                                  OSAID *                resultingScriptValueID)                FIVEWORDINLINE(0x2F3C, 0x0010, 0x1107, 0x7000, 0xA82A);
  114.  
  115. EXTERN_API( OSAError )
  116. OSAGetPropertyNames                (ComponentInstance         scriptingComponent,
  117.                                  long                     modeFlags,
  118.                                  OSAID                     contextID,
  119.                                  AEDescList *            resultingPropertyNames)                FIVEWORDINLINE(0x2F3C, 0x000C, 0x110C, 0x7000, 0xA82A);
  120.  
  121. EXTERN_API( OSAError )
  122. OSASetHandler                    (ComponentInstance         scriptingComponent,
  123.                                  long                     modeFlags,
  124.                                  OSAID                     contextID,
  125.                                  const AEDesc *            handlerName,
  126.                                  OSAID                     compiledScriptID)                    FIVEWORDINLINE(0x2F3C, 0x0010, 0x1108, 0x7000, 0xA82A);
  127.  
  128. EXTERN_API( OSAError )
  129. OSAGetHandler                    (ComponentInstance         scriptingComponent,
  130.                                  long                     modeFlags,
  131.                                  OSAID                     contextID,
  132.                                  const AEDesc *            handlerName,
  133.                                  OSAID *                resultingCompiledScriptID)            FIVEWORDINLINE(0x2F3C, 0x0010, 0x1109, 0x7000, 0xA82A);
  134.  
  135. EXTERN_API( OSAError )
  136. OSAGetHandlerNames                (ComponentInstance         scriptingComponent,
  137.                                  long                     modeFlags,
  138.                                  OSAID                     contextID,
  139.                                  AEDescList *            resultingHandlerNames)                FIVEWORDINLINE(0x2F3C, 0x000C, 0x110D, 0x7000, 0xA82A);
  140.  
  141. EXTERN_API( OSAError )
  142. OSAGetAppTerminology            (ComponentInstance         scriptingComponent,
  143.                                  long                     modeFlags,
  144.                                  FSSpec *                fileSpec,
  145.                                  short                     terminologyID,
  146.                                  Boolean *                didLaunch,
  147.                                  AEDesc *                terminologyList)                    FIVEWORDINLINE(0x2F3C, 0x0012, 0x110A, 0x7000, 0xA82A);
  148.  
  149. /* Errors:
  150.        errOSASystemError        operation failed
  151.     */
  152. EXTERN_API( OSAError )
  153. OSAGetSysTerminology            (ComponentInstance         scriptingComponent,
  154.                                  long                     modeFlags,
  155.                                  short                     terminologyID,
  156.                                  AEDesc *                terminologyList)                    FIVEWORDINLINE(0x2F3C, 0x000A, 0x110B, 0x7000, 0xA82A);
  157.  
  158. /* Errors:
  159.        errOSASystemError        operation failed
  160.     */
  161. /* Notes on terminology ID
  162.  
  163.     A terminology ID is derived from script code and language code
  164.     as follows;
  165.  
  166.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  167. */
  168. /**************************************************************************
  169.     Obsolete versions provided for backward compatibility:
  170. */
  171. EXTERN_API( OSAError )
  172. ASSetProperty                    (ComponentInstance         scriptingComponent,
  173.                                  OSAID                     contextID,
  174.                                  const AEDesc *            variableName,
  175.                                  OSAID                     scriptValueID)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x1101, 0x7000, 0xA82A);
  176.  
  177. EXTERN_API( OSAError )
  178. ASGetProperty                    (ComponentInstance         scriptingComponent,
  179.                                  OSAID                     contextID,
  180.                                  const AEDesc *            variableName,
  181.                                  OSAID *                resultingScriptValueID)                FIVEWORDINLINE(0x2F3C, 0x000C, 0x1102, 0x7000, 0xA82A);
  182.  
  183. EXTERN_API( OSAError )
  184. ASSetHandler                    (ComponentInstance         scriptingComponent,
  185.                                  OSAID                     contextID,
  186.                                  const AEDesc *            handlerName,
  187.                                  OSAID                     compiledScriptID)                    FIVEWORDINLINE(0x2F3C, 0x000C, 0x1103, 0x7000, 0xA82A);
  188.  
  189. EXTERN_API( OSAError )
  190. ASGetHandler                    (ComponentInstance         scriptingComponent,
  191.                                  OSAID                     contextID,
  192.                                  const AEDesc *            handlerName,
  193.                                  OSAID *                resultingCompiledScriptID)            FIVEWORDINLINE(0x2F3C, 0x000C, 0x1104, 0x7000, 0xA82A);
  194.  
  195. EXTERN_API( OSAError )
  196. ASGetAppTerminology                (ComponentInstance         scriptingComponent,
  197.                                  FSSpec *                fileSpec,
  198.                                  short                     terminologID,
  199.                                  Boolean *                didLaunch,
  200.                                  AEDesc *                terminologyList)                    FIVEWORDINLINE(0x2F3C, 0x000E, 0x1105, 0x7000, 0xA82A);
  201.  
  202. /* Errors:
  203.         errOSASystemError        operation failed
  204.     */
  205. /**************************************************************************/
  206.  
  207.  
  208.  
  209. #if PRAGMA_STRUCT_ALIGN
  210.     #pragma options align=reset
  211. #elif PRAGMA_STRUCT_PACKPUSH
  212.     #pragma pack(pop)
  213. #elif PRAGMA_STRUCT_PACK
  214.     #pragma pack()
  215. #endif
  216.  
  217. #ifdef PRAGMA_IMPORT_OFF
  218. #pragma import off
  219. #elif PRAGMA_IMPORT
  220. #pragma import reset
  221. #endif
  222.  
  223. #ifdef __cplusplus
  224. }
  225. #endif
  226.  
  227. #endif /* __ASDEBUGGING__ */
  228.  
  229.